package com.zhiying.service;

import org.apache.ibatis.annotations.Param;

import com.zhiying.domain.Role;
import com.zhiying.page.BasePageDTO;
import com.zhiying.page.PageInfo;
import com.zhiying.page.UserPageDTO;

public interface RoleService {

	BasePageDTO selectUserRoleInfo(PageInfo pageInfo,String search);

	int selectRoleCount(@Param("search") String search);

	int updatestatusByid(@Param("role")Role role);
	
	Role selectRoleInfoById(@Param("RoleId")Long roleId); 
	
	int selectCmsRoleByRoleId(@Param("roleId")int roleId);
	
	int deleteByRoleId(@Param("roleId") int roleId);
	
	UserPageDTO listByRoleId(@Param("roleId")int roleId,@Param("pageInfo")PageInfo pageInfo, @Param("search")String search);

	int selectRoleCountByRoleId(@Param("roleId")int roleId,@Param("search")String search);

}
